package com.qtenv.datasync.service.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
    * 大分区冻结数据
    * </p>
 *
 * @author CBL
 * @since 2022-08-03
 */
@Data
@TableName("dm_dfq_freeze")
@ApiModel(value = "DfqFreeze对象", description = "大分区冻结数据")
public class DfqFreeze implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableField("id")
    private String id;

    @ApiModelProperty("设备归属租户")
    @TableField("tenant_id")
    private String tenantId;

    @ApiModelProperty("层级id")
    @TableField("areaid")
    private String areaid;

    @ApiModelProperty("冻结时间")
    @TableField("freezetime")
    private String freezetime;

    @ApiModelProperty("冻结类型，日：day，月：month")
    @TableField("frozen_type")
    private String frozenType;

    @ApiModelProperty("供水量（m³，挂接的进水-出水）")
    @TableField("input_flow")
    private BigDecimal inputFlow;

    @ApiModelProperty("售水量（m³）")
    @TableField("sale_water")
    private BigDecimal saleWater;

    @ApiModelProperty("进水流量（m³）")
    @TableField("inlet_flow")
    private BigDecimal inletFlow;

    @ApiModelProperty("出水流量（m³）")
    @TableField("outlet_flow")
    private BigDecimal outletFlow;

    @ApiModelProperty("监控表用水量，总表关系中类型为“流量计”的表用水量之和")
    @TableField("jk_flow")
    private BigDecimal jkFlow;

    @ApiModelProperty("户表用水量（m³，独立户表）")
    @TableField("household_flow")
    private BigDecimal householdFlow;

    @ApiModelProperty("大用户用水量（m³）")
    @TableField("senior_flow")
    private BigDecimal seniorFlow;

    @ApiModelProperty("消火栓用水量（m³）")
    @TableField("hydrant_flow")
    private BigDecimal hydrantFlow;

    @ApiModelProperty("无收益水量（m³）")
    @TableField("free_water")
    private BigDecimal freeWater;

    @ApiModelProperty("平均压力（mpa）挂接的所有大表设备夜间时间段数据的平均值，没有压力设备的使用建模时录入的固定值")
    @TableField("avg_pressure")
    private BigDecimal avgPressure;

    @ApiModelProperty("背景漏失（m³/h）")
    @TableField("uarl")
    private BigDecimal uarl;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty("账期")
    @TableField("paydate")
    private String paydate;

    @ApiModelProperty("供水量环比")
    @TableField("hb")
    private String hb;

    @ApiModelProperty("产销差率")
    @TableField("cxcl")
    private String cxcl;

    @TableField(exist = false)
    private String AreaName;

    @TableField(exist = false)
    private String bjll;
}